#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

#include <limits.h>
int main()
{
	int arr[3] = { 0 };
	int max = 0;
	int min = INT_MAX;
	int i = 0;
	for (i = 0; i < 3; i++)
	{
		scanf("%d", &arr[i]);
		max = (max > arr[i]) ? max : arr[i];
		min = (min < arr[i]) ? min : arr[i];
	}
	int ret = min;
	int a = max;
	int b = min;
	while (max % ret != 0)
	{
		ret = max % min;
		max = min;
		min = ret;
	}
	a = a / ret;
	b = b / ret;
	printf("%d/%d", b, a);

	return 0;
}